package com.hymjweb.demo.hymj.department_manage.bean;

import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.Date;

@Table(name = "xt_department")
@Data
@EqualsAndHashCode(callSuper = false)
public class XtDepartmentPojo extends  XtDepartmentCachePojo{

    @FieldMeta(columnname = "phone", name = "部门电话")
    private String phone;

    @FieldMeta(columnname = "address", name = "部门地址")
    private String address;

    @FieldMeta(columnname = "leader_id", name = "部门领导ID", comment = "关联XT_USER.ID")
    private String leaderId;

    @FieldMeta(columnname = "company_id", name = "归属公司ID", comment = "关联XT_COMPANY.ID")
    private String companyId;

    @FieldMeta(columnname = "city_id", name = "所在行政区划ID", comment = "关联XT_CITY.ID")
    private String cityId;

    @FieldMeta(columnname = "category_id", name = "部门类型ID", comment = "关联XT_DIC.ID KEY='XT_DIC_DEPARTMENT_CATEGORY'")
    private String categoryId;

    @FieldMeta(columnname = "comment", name = "备注")
    private String comment;

    @FieldMeta(columnname = "create_time", name = "创建时间")
    private Date createTime;

    @FieldMeta(columnname = "create_user_id", name = "记录添加人ID", comment = "关联XT_USER.ID")
    private String createUserId;

    @FieldMeta(columnname = "update_time", name = "更新时间")
    private Date updateTime;

    @FieldMeta(columnname = "update_user_id", name = "更新用户ID", comment = "关联XT_USER.ID")
    private String updateUserId;

}
